class Dog():
    def __init__(self,name,age):
        """初始化方法"""
        self.name = name
        self.age = age

    def sit(self):
        print(self.name + ' age ' + str(self.age) +  ' sit down')

dog = Dog('NIL',2)
print(dog.name)
dog.sit()